<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>推荐类型编辑</title>
<#include "/WEB-INF/content/module-edit.html">
<link href="${request.contextPath}/res/kindeditor/themes/default/default.css" rel="stylesheet" />
<script type="text/javascript">
function mySave(){
	if (!$("#form").form('validate'))
		return;
	save(); 
}
</script>
<style>
.input-width{
	width: 95%;
}
</style>
 
</head>
<body class="easyui-layout">
	<div region="north" id="toolbar" style="background-color: #eee; padding: 5px; overflow: hidden;" border="false">
		<#if object.id?exists&&object.id!="">
			<@auth code="activity:columnType:update">
				<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc" onclick="javascript:mySave()">保存</a>
			</@auth>
		<#else>
			<@auth code="activity:columnType:create">
				<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc" onclick="javascript:mySave()">保存</a>
			</@auth>
		</#if>
		<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-edit" style="border: 1px solid #ccc" onclick="javascript:cancel()">关闭</a>
	</div>
	<div region="center">
		<div id="p" class="easyui-panel" style="background: #fafafa; padding: 10px" fit="true" toolbar="#toolbar">
			<form id="form" method="post">
			<input id="_id" type="hidden" name="id" value="${(object.id)!}">
				<table class="form" cellspacing="0" style="width: 100%">
					<tbody style="border: 1px solid #ccc">
						<tr>
							<td class="label">类型名称：</td>
							<td colspan="4"><input id="name" name="name" style="width:90%;" required="true" value="${object.name!}" class="easyui-validatebox" required="true"/></td>
							<td class="validate">*</td>									
						</tr>	
						<tr>
							<td class="label">类型描述：</td>
							<td colspan="4"><textarea style="width:90%;" id="descb" name="descb" class="easyui-validatebox" required="true">${(object.descb)!}</textarea></td>
							<td class="validate">*</td>
						</tr>						
					</tbody>
				</table>
			</form>
		</div>
	</div>
</body>
</html>